package com.woniuxy.enjoylife.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.woniuxy.enjoylife.entity.Menu;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
//账号-角色实体类
public class UserRoleMenusDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //账号名
    private String account;
    //账号密码
    private String password;
    //邮箱
    private String email;
    //账号头像
    private String image;
    //是否删除  0：未删除   1：已删除
    private Integer status;
    //通过id去用户角色中间表查出rid，用rid去角色菜单表查出mid，再根据mid查出对应菜单列表
    private List<Menu> menus;

    
}
